<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox-content">
					<form class="form-horizontal m-t" id="signupForm">
						<input id="userId" name="userId" th:value="${user.userId}"
							type="hidden">
						<div class="form-group">
							<label class="col-sm-3 control-label">姓名：</label>
							<div class="col-sm-8">
								<input id="name" name="name" class="form-control" type="text"
									th:value="${user.name}" readonly>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">用户名：</label>
							<div class="col-sm-8">
								<input id="username" name="username" class="form-control"
									type="text" th:value="${user.userName}" readonly>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">所属商户代理：</label>
							<div class="col-sm-8">
								<select data-placeholder="选择所属商户代理" id="userIdCreate" name="userIdCreate"
										class="form-control chosen-select"
										tabindex="2" style="width: 100%">
									<option th:each="agent:${agentList}"
											th:value="${agent.userId}"
											th:text="${agent.userName}"
											th:selected="${user.userIdCreate eq agent.userId}"></option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">密码：</label>
							<div class="col-sm-8">
								<input id="password" name="password" class="form-control"
									   type="password" th:value="${user.password}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">再次输入密码：</label>
							<div class="col-sm-8">
								<input id="confirm_password" name="confirm_password" class="form-control"
									   type="password" th:value="${user.password}">
							</div>
						</div>
						<div class="form-group" th:if="${role}">
							<label class="col-sm-3 control-label">余额：</label>
							<div class="col-sm-8">
								<input id="balance" name="balance" class="form-control"
									   type="text" th:value="${user.balance}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">最小金额(支)：</label>
							<div class="col-sm-8">
								<input id="minMoney" name="minMoney" class="form-control"
									   type="text" th:value="${user.minMoney}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">最小金额(微)：</label>
							<div class="col-sm-8">
								<input id="minWeiXinMoney" name="minWeiXinMoney" class="form-control"
									   type="text" th:value="${user.minWeiXinMoney}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">最小金额(支H5)：</label>
							<div class="col-sm-8">
								<input id="minAlipayTransMoney" name="minAlipayTransMoney" class="form-control"
									   type="text" th:value="${user.minAlipayTransMoney}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">最小金额(支账号)：</label>
							<div class="col-sm-8">
								<input id="minAlipayAccountTransMoney" name="minAlipayAccountTransMoney" class="form-control"
									   type="text" th:value="${user.minAlipayAccountTransMoney}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">备注昵称：</label>
							<div class="col-sm-8">
								<input id="remarks" name="remarks" class="form-control"
									   type="text" th:value="${user.remarks}">
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">手机号码：</label>
							<div class="col-sm-8">
								<input id="mobile" name="mobile" class="form-control" type="tel"
									th:value="${user.mobile}">
							</div>
						</div>
						<input type="hidden" name="roleIds" id="roleIds"
							th:value="${roleIds}">
						<div class="form-group">
							<label class="col-sm-3 control-label">数字令牌：</label>
							<div class="col-sm-8">
								<input id="code" name="code" class="form-control" type="tel"
									   placeholder="请输入数字令牌" maxlength="6">
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-8 col-sm-offset-3">
								<button type="submit" class="btn btn-primary">提交</button>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/merchant/merchant/edit.js?ver="+Math.random()>
	</script>
</body>
</html>
